package gas.frontend;

import java.util.HashMap;

public class StorageMap {
	private HashMap<Object, Symbol> map;
	
	public StorageMap() {
		map = new HashMap<Object, Symbol>();
	}
	
	public Object put(Object key, Symbol symbol) {
		return map.put(key, symbol);
	}
	
	public Object get(Object key) {
		return map.get(key);
	}
	
	public Object remove(Object key) {
		return map.remove(key);
	}
	
//	public Object genTmp(String type, Object value){
//		String key = "var_" + String.valueOf(SymbolTable.count);
//		Symbol symbol = new Symbol(type, value);
//		SymbolTable.count++;
//		return map.put(key, symbol);
//	}
}